package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.Employee;
import cn.wolfcode.wms.qo.EmployeeOueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Integer queryForCount(EmployeeOueryObject qo);

    List<Employee> queryForList(EmployeeOueryObject qo);

    void deleteRelation(Long id);

    void insertReslation(@Param("empId") Long empId, @Param("rId") Long rId);


    Employee selecetByUsername(String name);

    void deleteByIds(Long[] ids);
}